<template>
  <div>
    <div class="main" v-title data-title="飞熊科技"></div>
    <div class="header">
      <p v-if="!flag" class="loginBtn"><el-button size="medium" type="primary">登录</el-button></p>
      <p v-if="flag" class="loginBtn"><span class="spanText">用户：xxxxx</span> <el-button size="medium" type="primary">退出登录</el-button></p>
      <span class="logo"> <img src="../assets/imges/logo.png" alt="" /></span>
      <ul>
        <li class="index" @click="goHome">首页</li>
        <li class="product" @click="goProduct">产品介绍</li>
        <li class="solution" @click="goSolution">解决方案</li>
      </ul>
    </div>

    <div class="footer">
      <img src="../assets/imges/底部.png" alt="" />
    </div>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      activeName: '',
      flag: true,
      path: '',
    }
  },
  methods: {
    goHome() {
      this.$router.push({ name: 'Home' })
    },
    goProduct() {
      this.$router.push({ name: 'product' })
    },
    goSolution() {
      this.$router.push({ name: 'goSolution' })
    },
  },
}
</script>
<style scoped>
* {
  margin: 0;
  padding: 0;
}
/deep/#tab-home {
  width: 83px !important;
}
.spanText {
  font-size: 16px;
  margin-right: 15px;
}
.index {
  border-bottom: 2px #31adda solid !important;
}
.logo {
  float: left;
  margin-right: 96px;
  margin-top: 8px;
}
/* ul {
  position: relative;
} */

ul li {
  float: left;
  display: block;
  list-style: none;
  cursor: pointer;
  width: 96px;
  height: 57px;
  opacity: 1;
  font-size: 16px;
  font-family: Noto Sans S Chinese Regular, Noto Sans S Chinese Regular-Regular;
  font-weight: 500;
  margin-left: 35px;
  text-align: center;
  line-height: 57px;
}

.footer {
}
.fr {
  float: right;
}
/deep/#tab-product {
  width: 100px !important;
}
/deep/#tab-solution {
  width: 83px !important;
}

.header {
  position: relative;
  padding: 0 48px;
  height: 59px;
  line-height: 57px;
  border-bottom: 1px solid #c1c1c1;
}
.loginBtn {
  position: absolute;
  right: 106px;
}

/deep/.el-tabs__nav-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  z-index: 1;
}
</style>
